package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

/**
 * 课程内班级学生的学生信息
 */
@Data
public class SubjectClassesStudentVo {
    /**
     * 课程id
     */
    private Integer subjectId;
    /**
     * 课程名字
     */
    private String subjectName;
    /**
     * 班级id
     */
    private Integer classesId;
    /**
     * 班级名字
     */
    private String classesName;
    /**
     * 学生id
     *
     */
    private Integer studentId;
    /**
     * 学生姓名
     */
    private String studentName;
    /**
     * 学生账号
     */
    private String studentAccount;
    /**
     * 学生学号
     */
    private String studentXueHao;

    @Override
    public String toString() {
        return "SubjectClassesStudentVo{" +
                "subjectId=" + subjectId +
                ", subjectName='" + subjectName + '\'' +
                ", classesId=" + classesId +
                ", classesName='" + classesName + '\'' +
                ", studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", studentAccount='" + studentAccount + '\'' +
                ", studentXueHao='" + studentXueHao + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SubjectClassesStudentVo that = (SubjectClassesStudentVo) o;
        return Objects.equals(subjectId, that.subjectId) && Objects.equals(subjectName, that.subjectName) && Objects.equals(classesId, that.classesId) && Objects.equals(classesName, that.classesName) && Objects.equals(studentId, that.studentId) && Objects.equals(studentName, that.studentName) && Objects.equals(studentAccount, that.studentAccount) && Objects.equals(studentXueHao, that.studentXueHao);
    }

    @Override
    public int hashCode() {
        return Objects.hash(subjectId, subjectName, classesId, classesName, studentId, studentName, studentAccount, studentXueHao);
    }
}
